package com.example.demo.spring.beans.factory;

/**
 * 继承BeanFactory,也就是在BeanFactory定义的功能的基础上增加了parentFactory的支持
 * @author: htc
 * @date: Created in 16:51 2018/11/29.
 */
public interface MyHierarchicalBeanFactory extends MyBeanFactory{
    /**
     * 返回父级的bean factory
     * @return
     */
    MyBeanFactory getParentBeanFactory();

    /**
     * 本地bean factory是否包含指定的bean
     * ignoring beans defined in ancestor contexts.
     * @param name
     * @return
     */
    boolean containsLocalBean(String  name);
}
